package cn.wolfcode.p2p.business.domain;

import cn.wolfcode.p2p.base.domain.BaseDomain;
import cn.wolfcode.p2p.base.domain.LoginInfo;
import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class UserBankInfo extends BaseDomain {
    private String bankForkName;//银行所在名

    private String bankName;//银行卡名

    private String accountNumber;//银行卡号

  /*  private Long loginInfoId;*/
    private LoginInfo loginInfo;

    public String getAccountName(){
        if(this.getLoginInfo()!=null){
            return loginInfo.getUsername();
        }
        return "匿名";
    }




}